package JAVA;

public class work392 {
    public static void main(String[] args) {
        int sum=0;
        int num=0;
        System.out.println("1-100之间不能被7整除的数：");
        for (int i=1;i<=100;i++){
            if (i%7!=0){
                System.out.print(i+"\t");
                num++;
                sum+=i;
                if (num==4){
                    System.out.println();
                    num=0;
                }
            }
        }
        System.out.println("\n1-100之间不能被7整除的数："+sum);
    }
}
